package com.traffic.controller;

import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

/**
 * Created by IntelliJ IDEA.
 * User: KingRainGrey
 * Date: 2020/10/12
 */
@RestController
@RequestMapping("/")
public class IndexController {
    @GetMapping("/")
    public String Index() {
        return "Welcome to the traffic api!";
    }

    @GetMapping("/error")
    public String error() {
        return "Miss this api!";
    }
}
